
<template>
	<view class="wrapper">
		<uni-section :title="'我的问题'" type="line">
			<view style="padding: 10px;">
				<view class="item-detail">
					<p>{{dataList[0].content.text}}</p>
				</view>
			</view>
		</uni-section>
		<uni-section :title="'医生回复'" type="line">
			<view style="padding: 10px;">
				<view class="item-detail">
					<p>{{dataList[1].content.text}}</p>
				</view>
			</view>
		</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				back_orser: '',
				dataList: []
			}
		},
		onLoad(option) {
			this.api_detail(option.back_orser, option.zid)
		},
		methods: {
			api_detail(back_orser, zid) {
				let openid = uni.getStorageSync('openid')
				this.$app._post_form("entry/wxapp/tuwen.listall", {
					openid: openid,
					back_orser: back_orser,
					zid: zid
				}, (res) => {
					console.log(res)
					this.dataList = res
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wrapper {
		padding: 15px;
		box-sizing: border-box;
		
		.item-detail {
			border-radius: 6px;
			border: 1px solid #e3e3e3;
			padding: 10px;
			line-height: 30px;
			background-color: #f5f5f5;
			font-size: .9rem;
			color: #757575;
			margin-bottom: 5px;
		}
	}
</style>